{extend name="Base/common"}
{block name="header"}
<link rel="stylesheet" href="__HOME__/css/form.css">
{include file="Public/header1"}
{/block}
{block name="body"}
<div class='layout-center' style='overflow: hidden'>
    <div class="box" style='margin-bottom: 0'>
        <div class="box-title">
            <span><b class="icon2"></b>数据查询</span>
            <div class="box-titlemsg" style=" float:left; margin-left: 30px">
                可以根据自己的需要组合筛选条件进行筛选</div>
            <ul class="box-nav" id="repairedwg-nav" style=" position:relative ; left:0; float:right;">
                <li class="yj3 on export_cur" data-value="dcall" style="width: 80px;">导出当前</li>
                <li class="yj3 on export_all" data-value="dcall" style="width: 80px;">导出全部</li>
            </ul>
        </div>
        <ul class="datalist datalist-head indexrepaired" style="border-top: solid 1px #e5e5e5;">
            <li class="Bserial">编号</li>
            <li class="Area_Name">区域</li>
            <li class="Project_Name">项目</li>
            <li class="Bcontent">内容</li>
            <li class="BuserName">报修人</li>
            <li class="Btime">报修时间</li>
            <li class="AcceptDept">承修单位</li>
            <li class="AcceptPersonName">受理人</li>
            <li class="Atime">受理用时</li>
            <li class="Bstate">完工用时</li>
        </ul>

        <div id="indexrepaired" style="min-height: 500px;" class="">
            
        </div>

        <div style="clear: both;">
        </div>
    </div>
    <div id="Pagination" class="pagination" style='background-color: #fff; padding: 10px 0; margin-top: 10px; cursor: pointer;'>
        加载更多
    </div>
    <style>
        .pagination:hover{
            background-color: #fafafa !important;
        }
        .loading.active{
            padding: 20px 0 !important
        }
    </style>
</div>

<script type="text/javascript">
    // 获取模块一数据
    $(function() {
        var params      = {
            p       : 1,
            limit   : 8
        }
        getData1()

        $('#Pagination').click(function() {
            $(this).html('').addClass('active loading')
            params.p++
            var url      = Model1Url + '?' + parseParam(params)

            $('#Pagination').addClass('active loading').html('')
            $.get(url, function (data) {
                if(data.status) {
                    setTimeout(function() {
                        $('#indexrepaired').append(normal(data.data))
                        $('#Pagination').removeClass('active loading').html('加载更多')
                    }, 1000)
                } else {
                    $('#Pagination').removeClass('active loading').html('没有更多数据')
                }
            })
        })

        $('.export_cur').click(function() {
            console.log(1)
            getData3(Arr)
        })
        $('.export_all').click(function() {
            getData3()
        })
    })
</script>
</div>
{/block}
{block name="footer"}
{include file="Public/footer1"}
{/block}

